package com.springbooti18n.validator;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

/**
 * xufan
 * 2019/1/5
 */
public class DateBeforVo implements ConstraintValidator<DateBefor,Object> {
    @Override
    public void initialize(DateBefor constraintAnnotation) {
        constraintAnnotation.message();
        System.out.println(constraintAnnotation.message());
        System.out.println(constraintAnnotation.getDate());

    }

    @Override
    public boolean isValid(Object value, ConstraintValidatorContext context) {
        return false;
    }
}
